package com.vincent.tvui;

import org.xmlpull.v1.XmlPullParserException;

import android.content.Context;
import android.content.res.TypedArray;
import android.content.res.XmlResourceParser;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.view.View;

/**
 * 项目：TvLauncher 作者：907357 时间：2016/10/12 9:45 版本：1.0 描述：软键盘
 */
public class SoftKeyboardView extends View {

    private int layoutResId = 0;


    public SoftKeyboardView(Context context) {
        super(context);
    }

    public SoftKeyboardView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public SoftKeyboardView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);

        TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.SoftKeyboardView, defStyleAttr, 0);
        //layoutResId = a.getResourceId(R.styleable.SoftKeyboardView_layout, 0);
        a.recycle();

        XmlResourceParser xmlResourceParser = getResources().getXml(layoutResId);
        try {
            //
            xmlResourceParser.getEventType();
        } catch (XmlPullParserException e) {
            e.printStackTrace();
        }


    }


    @Override
    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);
    }



}
